package ui.model;

import java.io.Serializable;

import util.StringUtils;

/**
 * Created by chenjian on 2019/12/4
 */

public class RewardsDetailsBean extends BaseBean implements Serializable {


    /**
     * | 字段         | 备注         |
     * | ------------ | ------------ |
     * | amount       | 奖励金额     |
     * | entityName   | 业务实体人   |
     * | businessTime | 业务时间     |
     * | snCount      | 购买sn数量   |
     * | sn           | sn号         |
     * | memberAmount | 购买会员金额 |
     * | 字段        | 备注                                    |
     * | ----------- | --------------------------------------- |
     * | amount      | 奖励金额                                |
     * | month       | 月份                                    |
     * | year        | 年份                                    |
     * | type        | 奖励类型（和参数type一致）              |
     * | snCount     | 购买台数 / 推广台数 / 激活台数          |
     * | recordCount | 总记录数 / 购买会员 / 开通商户 / 商户数 |
     */
    private String amountStr;
    private String amount;
    private long createTime;
    private int customerId;
    private int id;
    private int month;
    private String recordCount;
    private String snCount;
    private int type;
    private long updateTime;
    private int year;
    private long businessTime;
    private String entityName;
    private String flowNo;
    private String memberAmount;
    private String sn;
    private int status;


    public String getAmountStr() {
        return returnInfo(amountStr);
    }

    public void setAmountStr(String amountStr) {
        this.amountStr = amountStr;
    }

    public String getAmount() {
        return StringUtils.isEmpty(amount) ? "0" : amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public String getRecordCount() {
        return returnInfo(recordCount);
    }

    public void setRecordCount(String recordCount) {
        this.recordCount = recordCount;
    }

    public String getSnCount() {
        return returnInfo(snCount);
    }

    public void setSnCount(String snCount) {
        this.snCount = snCount;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public long getBusinessTime() {
        return businessTime;
    }

    public void setBusinessTime(long businessTime) {
        this.businessTime = businessTime;
    }

    public String getEntityName() {
        return returnInfo(entityName);
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getFlowNo() {
        return returnInfo(flowNo);
    }

    public void setFlowNo(String flowNo) {
        this.flowNo = flowNo;
    }

    public String getMemberAmount() {
        return StringUtils.isEmpty(memberAmount) ? "0" : memberAmount;
    }

    public void setMemberAmount(String memberAmount) {
        this.memberAmount = memberAmount;
    }

    public String getSn() {
        return returnInfo(sn);
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
